import {createApp} from 'vue'
import App from './App.vue'


import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

import router from './router'

import {createPinia} from "pinia";

const pinia = createPinia()

import VxeUIAll from 'vxe-pc-ui'
import 'vxe-pc-ui/es/style.css'

import VxeUITable from 'vxe-table'
import 'vxe-table/lib/style.css'

import './style.css'

const app = createApp(App)
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.use(VxeUIAll)
app.use(VxeUITable)
app.mount('#app')

import './router/guards.js'

import * as Icons from '@element-plus/icons-vue'

Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key])
})